﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CaptureImageMergeSys
{
    public sealed class ApplicationController
    {
        private bool m_bDeviceAReady;
        private bool m_bDeviceBReady;

        private static ApplicationController instance;

        private ApplicationController()
        {}

        public static ApplicationController Instance()
        {
            // Uses "Lazy initialization"
            if (instance == null)
                instance = new ApplicationController();

            return instance;
        }

        public bool InitSystem()
        {
            m_bDeviceAReady = false;
            m_bDeviceBReady = false;
            return true;
 
        }

        public void SetDeviceStatus( string strDeviceName, bool bReady )
        {
            if (strDeviceName == "DeviceA")
            {
                m_bDeviceAReady = bReady;
            }

            if (strDeviceName == "DeviceB")
            {
                m_bDeviceBReady = bReady;
            }

            // update status panel
        }
    }
}
